<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="{$base_address}" />
<!--META-->
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="author" content="mailto:tvoslar(@)seznam.cz" />
<meta name="language" content="cs" />
<meta name="description" content="Web-projekt" />
<meta name="keywords" content="" />
<!-- doplnit klicova slova -->
<meta name="copyright" content="Tomáš Voslař, Tomáš Bdínka" />
<!-- doplnit copyright -->
<meta content="IE=EmulateIE7" http-equiv="X-UA-Compatible" />
<meta http-equiv="pragma" content="no-cache" />
<meta name="robots" content="index,nofollow" />
<!--pripojene soubory CSS-->
<link rel="stylesheet" type="text/css" href="{$baseUri}css/adminStyle.css"
	media="all" />
<!--[if lte IE 6]><link rel="stylesheet" href="{$baseUri}css/style-ie-6.css"  type="text/css" media="all" /><![endif]-->
<!--[if gte IE 7]><link rel="stylesheet" href="{$baseUri}css/style-ie-7.css"  type="text/css" media="all" /><![endif]-->
<link rel="stylesheet" type="text/css" href="{$baseUri}css/print.css" media="print" />
<link rel="stylesheet" type="text/css" href="{$baseUri}css/datagrid.css" media="all" />
<link rel="stylesheet" type="text/css" href="{$baseUri}css/screen.css" media="all" />
<link rel="stylesheet" type="text/css" href="{$baseUri}css/ajax.css" media="all" />
<!--pripojene soubory ICO-->
<link rel="shortcut icon" href="{$baseUri}images/favicon.gif" />
<title>Administrace - {$title}</title>
<script charset="utf-8" src="{$baseUri}libs/system.php?base_address={$base_address}&base={$baseUri}" type="text/javascript"></script>
<script type="text/javascript" src="{$baseUri}libs/tiny_mce/tiny_mce.js"></script>
<link rel="stylesheet" type="text/css" href="{$baseUri}libs/uploadify/uploadify.css" media="all" />
<script type="text/javascript">
var sess_exp = {$session_expires};
</script>

{foreach $jsFile as $f}
	<script type="text/javascript" src="{$baseUri}{$f}"></script>
{/foreach}

</head>
<body>

<div id="page">
<div id="top">
<div id="header"><a href="index.html" id="logotype"
	title="CMS"> <strong>CMS by web-projekt / redakční systém pro správu obsahu webu</strong> </a> <!-- informace o uzivateli -->

<div class="info">
<p>Přihlášen je <a href="#"	title="Detail uživatelské sekce {$user->name}"><strong>{$user->name}</strong></a> | {$user->roles[0]}</p>
<p class="black"><a href="{plink System:editUser 'id'=>$user_data["id_user"]}" title="Detail mého účtu">Můj účet</a> | <a	href="{plink "Login:logout"}" title="Odhlásit se ze systému" class="logout">Odhlásit se</a></p>

</div>
<!-- end --> <!-- sprava obsahu nebo systemu + odpocitavac odhlaseni -->

<div class="sprava float-l">
<p class="float-l"><a href="{plink "Web:"}" {if $presenter_name!="System" }class="selected"{/if} title="Právě spravujte obsah webových stránek">Správa webu<span></span></a>
<a href="{plink "System:"}" {if $presenter_name=="System"}class="selected" {/if} title="Spravujte systémová nastavení">Správa systému<span></span></a></p>

<div class="logout-time float-r">
<div id="bar" class="time" style="width: 250px;"></div>
<p>Automatické odhlášení za <em id="timer">3 m 45 s / 10 m</em></p>
</div>
</div>

<!-- end --> <!-- HLAVNI MENU -->
<div id="obal-menu">
{if $presenter_name=="System"}
<div id="menu">
<ul>
	<li {if $presenter_action=="viewMenu"}class="selected"{/if}><a href="{plink System:viewMenu}">Menu<span></span></a></li>
	<li {if $presenter_action=="viewModules"}class="selected"{/if}><a href="{plink System:viewModules}">Moduly<span></span></a></li>
	<li {if $presenter_action=="viewUsers"}class="selected"{/if}><a href="{plink System:viewUsers}">Uživatelé<span></span></a></li>
	<li {if $presenter_action=="viewLanguages"}class="selected"{/if}><a href="{plink System:viewLanguages}">Jazyky<span></span></a></li>
	<li {if $presenter_action=="viewTranslations"}class="selected"{/if}><a href="{plink System:viewTranslations}">Překlady<span></span></a></li>
	<li {if $presenter_action=="viewFiles"}class="selected"{/if}><a href="{plink System:viewFiles}">Správa souborů<span></span></a></li>
	<li {if $presenter_action=="viewOptions"}class="selected"{/if}><a href="{plink System:viewOptions}">Nastavení<span></span></a></li>
</ul>
</div>
{else}
<div id="menu">
<ul>
	{*{foreach $menu as $item}
	{if $title==$item[ 'name']}{$subMenu=$item['sub']}{/if}
	<li {if $title==$item[ 'name']}class="selected"{/if}><a href="{plink "Admin{$item['presenter']}:" 'id'=>"{$item['id_menu']}"}">{$item['name']}<span></span></a>
	{if !empty($item["sub"])}{include subMenu.phtml, 'sub' =>	$item["sub"]}{/if}</li>{/foreach}*}
</ul>
</div>
{/if} <span class="clear-b"></span></div>
 <span class="clear-b"></span>
</div>
<!-- end #header --> <!-- drobeckova navigace -->
<div id="navigation">
<div id="nav"></div></div>
<!-- end --></div>
<!-- end top --> <!-- obsahova cast -->

<div id="content-wrapper"><!-- OBSAHOVA CAST --> <!-- SUBMENU -->

{if $presenter_name!="System"}
<div id="submenu" class="float-l">
<h1>Menu</h1>
{if !empty($menu)}
<ul>
{foreach $menu as $item}
<li class="selected"><a href="{plink "Admin{$item['presenter']}:" 'id'=>"{$item['name_seo']}"}" title="{$item["name"]}">{$item["name"]}</a>
{if !empty($item["sub"])}{include subMenu.phtml, 'sub' =>	$item["sub"]}{/if}</li>
{/foreach}
</ul>
{/if}
</div>
{/if}

<!-- END -->
<div id="content">
<div>
<form action="" method="post"><select name="id_language_admin">
	{foreach $languages as $language}
	<option value="{$language["id_language"]}" {if $language["id_language"]==$actual_language}selected="selected"{/if}>{$language["name"]}</option>
	{/foreach}
</select> <input type="submit" value="Změnit jazyk" /></form>
</div>

<div class="obal-h1"><h2>{$title}</h2></div>
{snippet flash}
	{foreach $flashes as $flash}
		<div id="info-{$flash->type}">
			{$flash->message}
			<span id="{$flash->type}-ico"></span>
		</div>
	{/foreach}
{/snippet} 

{include $content}

</div>

<!-- end #content --> <span class="clear-b"></span></div>
<!-- end #content-wrapper --> <span class="clear-b"></span>
<div id="footer">

<p class="float-l">&copy; Copyright web-projekt s.r.o. 2009. Všechna práva
vyhrazena.</p>
<p class="float-r">System by web-projekt / design by WebCook</p>
<span class="clear-b"></span></div>
<!-- end #footer --></div>
<!-- end #page -->

</body>
</html>
